package com.mao.factory.absttact.xiaomi;

import com.mao.factory.absttact.AbstractFactory;
import com.mao.factory.absttact.Cpu;
import com.mao.factory.absttact.MainBoard;
import com.mao.factory.absttact.Power;

public class XiaomiFactory implements AbstractFactory {
    @Override
    public Cpu chooseCpu() {
        return new XiaomiCpu();
    }

    @Override
    public Power choosePower() {
        return new XiaomiPower();
    }

    @Override
    public MainBoard chooseMainboard() {
        return new XiaomiMainboard();
    }
}
